#! /bin/sh

projectName=iam-web


rm -f .env
echo "生产环境变量占位符"
cat ./docker/.env.docker > .env
cat .env

echo "打包代码"
npm run build

echo "打包镜像"
docker build -t $projectName:v$1 .


echo "清理文件"
rm -f .env
